﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Shapes;
using System.Windows.Media;
using System.Windows;

namespace Windy.TurtleDrawing
{
    public static class TurtleFactory
    {
        public static Turtle CreateTurtle(this StreamGeometry geometry)
        {
            return new Turtle(geometry.Open());
        }

        public static Turtle CreateTurtle(this StreamGeometry geometry, Point startPoint, double direction = 0, bool isPloting = true, bool isFilled = false, bool isClosed = false)
        {
            return new Turtle(geometry.Open(), startPoint, direction, isPloting, isFilled, isClosed);
        }
    }
}